<template>
  <div>
    <tr>
      <td>
        <input type="text" :value="num"
        @input="inp"
        
        />
      </td>
      <td>
        {{name}}
      </td>
      <td v-show="!num">
        卖光了
      </td>
    </tr>
  </div>
</template>

<script>
export default {
    num:'',
    props: ['num','name','index'],
    methods: {
        inp(){
            this.$emit('num1',this.index,this.num)
        }
    }
};
</script>

<style>
</style>